import Vue from 'vue';
import Router from 'vue-router';
import Home from '../view/home.vue';
Vue.use(Router)

const router = new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      redirect: '/queryLicense',
      children:[
        {
          path: '/queryLicense',
          name: 'queryLicense',
          component: () => import('../view/queryLicense.vue'),
          meta: {
            title: '临停车辆缴费',
          }
        },
        {
          path: '/fareDetail',
          name: 'fareDetail',
          component: () => import('../view/fareDetail.vue'),
          meta: {
            title: '车费详情',
          }
        },
      ]
    }
  ]
})
export default router
